# -*- coding: utf8-*-
z = 111
b = 30
import math

x = int(math.sqrt(z))
y = z/x
print x,y
a_list = []
for i in range(y):
    x2 = x/2 *30
    x3 = -x/2 *30
    y1 = i*30
    a_list.append([x2,y1])
    a_list.append([x3,y1])

print a_list